package day04;

public class MultiTable {
    public static void main(String[] args) {

        for(int i=1;i<=9; i++) {
            for (int s = 1; s <=i; s++) {
                System.out.print(s + "*" + i + "=" + i * s + "\t");
            }
            System.out.println();

        }
        //九九乘法口诀表
        for(int i=1;i<=9; i++) {
            for (int s = 9; s >=i; s--) {
                System.out.print(s + "*" + i + "=" + i * s + "\t");
            }
            System.out.println();

        }

        for(int i=9;i>=1; i--) {
            for (int s = 1; s <= i; s++) {
                System.out.print(s + "*" + i + "=" + i * s + "\t");
            }
            System.out.println();
        }


        }
}
